package io.xccit.controller;

import io.xccit.pojo.User;
import io.xccit.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * @author Xccit
 * @Date 2023-01-23
 * @Description
 */
//@Controller("usercontroller")
@Controller
public class UserController {
    @Autowired
    @Qualifier("userService1")
    private IUserService userService;
    /*public void setUserService(IUserService userService) {
        this.userService = userService;
    }*/
/*    public UserController(IUserService userService) {
        this.userService = userService;
    }*/

    public List<User> findAll(){
        return userService.findAll();
    }
}
